//
//  LGTextField.h
//  VVdaGong
//
//  Created by LGSC on 2018/5/30.
//  Copyright © 2018年 gongyouzhijia. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LGTextFieldDelegate <NSObject>

@optional
/**
 * 输入文本改变响应方法
 */
- (void)LGTextFieldDidChanged:(UITextField *)textField;
/**
 * 输入文本响应方法
 */
- (BOOL)LGtextField:(UITextField *)textField LGshouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;
/**
 * 编辑完成响应方法
 */
- (void)LGtextFieldDidEndEditing:(UITextField *)textField;
@end

@interface LGTextField : UITextField<UITextFieldDelegate>

@property (weak, nonatomic) id<LGTextFieldDelegate> my_delegate;

- (void)layoutMyTextField;
@end
